CMAKE_MINIMUM_REQUIRED (VERSION 3.8)

PROJECT ("client")

set(MSVC_INCREMENTAL_DEFAULT ON)
set(CMAKE_CXX_STANDARD 11)

######################### Depends ######################################

# add_subdirectory("xxxxxx" "xxxxxx")

######################### Source ######################################

aux_source_directory(imgui SRC_FILES)
aux_source_directory(src SRC_FILES)

message("Source files:")
message(${SRC_FILES})

######################### Headers ######################################

include_directories(imgui)
include_directories(src)

######################### Defination ######################################

set(WIN32_IGNORE_CL_WARNING_LIST "/wd\"4099\" /wd\"4458\"")

set(CMAKE_C_FLAGS_DEBUG "/DDEBUG /nologo /D_LIB /D_UNICODE /DUNICODE /D_FILTER /EHsc /RTC1 /MT /c /Od /Z7 /GF /Gy /FD /MP ${WIN32_IGNORE_CL_WARNING_LIST}")
set(CMAKE_C_FLAGS_RELEASE "/DNDEBUG /nologo /D_LIB /D_UNICODE /DUNICODE /D_FILTER /EHsc /MT /c /O2 /GF /Gy /FD /MP ${WIN32_IGNORE_CL_WARNING_LIST}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")

# link_directories(lib/)

add_executable(${PROJECT_NAME} ${SRC_FILES})